package com.sailing.xjpb.ipaas.client.translate.annotation;


import com.sailing.xjpb.ipaas.client.translate.enumer.IpaasUserFieldName;

import java.lang.annotation.*;

/**
 * 根据com.sailing.jd.ipaas.client.entity.bo.SipUserInfoBO#userId翻译人员相关信息
 *
 * @author YaoWei
 * createDate: 2020/11/25 18:57
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface IpaasUserField {

    /**
     * 指定userId字段
     */
    String sourceField();

    /**
     * 从com.sailing.jd.ipaas.client.entity.bo.SipUserInfoBO的哪个字段作为翻译值
     *
     * @return 翻译的字段名
     */
    IpaasUserFieldName fieldName();

}
